package sunwin.yoms.service.comm.exception;

import org.springframework.transaction.UnexpectedRollbackException;
import sunwin.yoms.comm.model.NameAndValueModel;

import java.util.List;

/**
 * Created by mt on 2015-9-14.
 * 预定资源已经被占用
 */
public class SubscribeOccupiedException extends UnexpectedRollbackException {
    private List<NameAndValueModel> occupiedTimeSpans;

    public SubscribeOccupiedException(String message) {
        super(message);
    }

    public SubscribeOccupiedException(String message, Throwable cause) {
        super(message, cause);
    }

    public List<NameAndValueModel> getOccupiedTimeSpans() {
        return occupiedTimeSpans;
    }

    public void setOccupiedTimeSpans(List<NameAndValueModel> occupiedTimeSpans) {
        this.occupiedTimeSpans = occupiedTimeSpans;
    }
}
